import request from '@/utils/request'

/**
 * 获取详情列表
 * @param {*} id
 * @returns
 */
export const getComMerceDetail = (id) => {
  return request({
    url: '/business/' + id
  })
}

/**
 * 意向学科/意向课程联动
 * @param {*} businessId
 * @returns
 */
export const courseComMerceDetail = (num) => {
  return request({
    url: '/business/name',
    params: { num }
  })
}

/**
 * 保存客户资料
 * @param {*} data
 * @returns
 */
export const putComMerceDetail = (data) => {
  return request({
    url: '/business',
    method: 'put',
    data
  })
}

/**
 * 历史记录
 * @param {*} id
 * @returns
 */
export const recordComMerceDetail = (businessId) => {
  return request({
    url: '/business/record/list',
    params: { businessId }
  })
}
